package com.kingwang.training.designpattern.principles.lsp.shape;

import lombok.Data;

@Data
public class Square extends Rectangle {
    @Override
    public void setWidth(Double width) {
        setWidth(width);
        setHeight(width);
    }

    @Override
    public void setHeight(Double height) {
        setWidth(height);
        setHeight(height);
    }
}
